﻿@model AdvCMS.Models.UploadModel
@{
    ViewBag.Title = "File Management";
    Layout = "~/Views/Shared/Admin.cshtml";
}

<h2>File Management</h2>

@using (Html.BeginForm( "Index", "FileManagement",FormMethod.Post, new { enctype = "multipart/form-data" })) 
{

    <table>
    <tr>
        <td>@Html.LabelFor(model => Model.Name)</td><td>@Html.TextBoxFor(x => x.Name)</td>
    </tr>
    <tr>
        <td>@Html.LabelFor(model => Model.FilePath):</td><td><input type="file" value="file" name="file" /></td>
    </tr>
    <tr>
        <td></td><td><input type="submit" value="Upload" /></td>
    </tr>
    </table>
}